Skip to content

Add cleanup tasks to resolve Grafana apt repository conflict#782

Open
akraitman wants to merge 1 commit intomainfrom
wip-remove-old-grafana-repo-and-gpg-key
Open

Add cleanup tasks to resolve Grafana apt repository conflict#782
akraitman wants to merge 1 commit intomainfrom
wip-remove-old-grafana-repo-and-gpg-key

Conversation

@akraitman
Copy link
Contributor

The new tasks remove the conflicting key file and duplicate repository entries before adding the standardized Grafana repository, ensuring a clean APT configuration

@akraitman akraitman requested review from djgalloway and dmick July 16, 2025 07:22
state: absent
when: ansible_pkg_mgr == "apt"

- name: Remove existing Grafana APT repository
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this remove and recreate the repo every time? Is there a way to make this conditional?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dmick I agree this is a bit bruteforce-y but it does prevent us from having to maintain some sort of sha or verification about the key. What is your concern? Security? Messing with apt cache?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wasted work. I guess I thought that we could set a variable if we found and removed the .key file at least. Not a big deal.

@akraitman akraitman force-pushed the wip-remove-old-grafana-repo-and-gpg-key branch from e896eb3 to d5f8b97 Compare July 17, 2025 13:29
The new tasks remove the conflicting key file and duplicate repository entries before adding the standardized Grafana repository, ensuring a clean APT configuration

Signed-off-by: Adam Kraitman <akraitma@li-8b09b2cc-35b7-11b2-a85c-cd1dbade58f9.ibm.com>
@akraitman akraitman force-pushed the wip-remove-old-grafana-repo-and-gpg-key branch from d5f8b97 to 5288aec Compare July 20, 2025 11:17
@akraitman akraitman requested review from djgalloway and dmick July 23, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants